﻿<ResourceDictionary
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:n="http://nRoute/schemas/2010/xaml" 
	xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
	xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
	xmlns:local_Behaviors="clr-namespace:nRoute.Samples.Netflix.Behaviors" 
    xmlns:local_Controls="clr-namespace:nRoute.Samples.Netflix.Controls" 
    mc:Ignorable="d">
	
	<SolidColorBrush x:Key="BackgroundSolidBrush" Color="#FFE8E8EA"/>
	
	<LinearGradientBrush x:Key="SelectorBkgLinearBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="Black" Offset="0.501"/>
		<GradientStop Color="Black" Offset="1"/>
		<GradientStop Color="#FF1B1B1B" Offset="0.5"/>
		<GradientStop Color="#FF3B3B3B"/>
	</LinearGradientBrush>

	<LinearGradientBrush x:Key="ButtonBkgBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC5C7C8" Offset="0"/>
		<GradientStop Color="#FF7E8285" Offset="1"/>
		<GradientStop Color="#FF96989F" Offset="0.517"/>
	</LinearGradientBrush>

	<LinearGradientBrush x:Key="ButtonBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF838487" Offset="0.233"/>
		<GradientStop Color="#FFADADAD" Offset="0.983"/>
	</LinearGradientBrush>
    
    <!-- FEATURES LISTBOX RELATED -->

	<Style x:Key="FeatureItemStyle" TargetType="ListBoxItem">
		<Setter Property="Padding" Value="3"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="VerticalContentAlignment" Value="Top"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="TabNavigation" Value="Local"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBoxItem">
					<Grid Background="{TemplateBinding Background}">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimation Duration="0" To=".35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="SelectionStates">
								<VisualState x:Name="Unselected"/>
								<VisualState x:Name="Selected">
									<Storyboard>
										<DoubleAnimation Duration="0" To=".75" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor2"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Rectangle x:Name="fillColor" Fill="#19FFFFFF" IsHitTestVisible="False" Opacity="0" RadiusY="4" RadiusX="4"/>
						<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
						<Rectangle x:Name="fillColor2" Fill="#33FFFFFF" RadiusX="4" RadiusY="4" IsHitTestVisible="False" Opacity="0" />
						<!--<Rectangle x:Name="FocusVisualElement" RadiusY="4" RadiusX="4" Stroke="#FF6A6A6A" StrokeThickness="1" Visibility="Collapsed" StrokeDashArray="1 0 2 0"/>-->
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ItemsPanelTemplate x:Key="FeaturesPanelTemplate">
		<VirtualizingStackPanel HorizontalAlignment="Center" VerticalAlignment="Stretch" Orientation="Horizontal" />
	</ItemsPanelTemplate>

	<DataTemplate x:Key="FeaturesDataTemplate">
		<Grid MinWidth="65" Margin="2,0">
			<TextBlock Foreground="#FFC5C5C5" FontWeight="Bold" FontSize="10" LineStackingStrategy="BlockLineHeight" 
				LineHeight="10" TextAlignment="Center" TextWrapping="Wrap" Text="{Binding Title}" 
				HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,1"/>
			<Image Source="{Binding IconPath}" Width="28" Height="24" 
				VerticalAlignment="Center" Margin="0,-16,0,0"/>
		</Grid>
	</DataTemplate>
	
	
	<!-- TOPIC TITLE RELATED (Text) -->
	
	<DataTemplate x:Key="TopicTitleTemplate">			
		<TextBlock Text="{Binding Name}" Margin="8,5,8,3" FontSize="17" TextTrimming="WordEllipsis" FontFamily="Arial" />
	</DataTemplate>
		
	<Style x:Key="TopicTitleBoxItemStyle" TargetType="ListBoxItem">
		<Setter Property="Padding" Value="3"/>
		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		<Setter Property="VerticalContentAlignment" Value="Top"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderThickness" Value="0"/>
		<Setter Property="TabNavigation" Value="Local"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBoxItem">
					<Grid Background="{TemplateBinding Background}">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimation Duration="0" To=".35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="SelectionStates">
								<VisualState x:Name="Unselected"/>
								<VisualState x:Name="Selected">
									<Storyboard>
										<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor2"/>
										<ColorAnimation Duration="0" To="#FFFFFFFF" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" 
											Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="LayoutStates">
								<VisualState x:Name="AfterLoaded"/>
								<VisualState x:Name="BeforeLoaded"/>
								<VisualState x:Name="BeforeUnloaded"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border BorderThickness="0,0,0,1" BorderBrush="#FFB2B1B1" />
						<Rectangle x:Name="fillColor" Fill="#FFD6D6D6" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1"/>
						<Rectangle x:Name="fillColor2" Fill="#FF005EF7" IsHitTestVisible="False" RadiusY="1" RadiusX="1" Opacity="0"/>
						<ContentControl x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" 
							Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
							Margin="{TemplateBinding Padding}" Foreground="#FF1D1D1D"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ContentNavigationContainerStyle" TargetType="n:BrowsingContainer">
		<Setter Property="IsTabStop" Value="False"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderBrush" Value="Transparent"/>
		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		<Setter Property="VerticalContentAlignment" Value="Stretch"/>
		<Setter Property="Padding" Value="0,0,0,0"/>
		<Setter Property="BorderThickness" Value="0"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="n:BrowsingContainer">
					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" OpacityMask="{TemplateBinding OpacityMask}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="NavigationStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00" To="NavigationFailed"/>
									<VisualTransition From="NavigationFailed" GeneratedDuration="00:00:00"/>
									<VisualTransition From="Navigating" GeneratedDuration="0:0:0.5" To="Navigated">
										<ei:ExtendedVisualStateManager.TransitionEffect>
											<ee:FadeTransitionEffect/>
										</ei:ExtendedVisualStateManager.TransitionEffect>
										<VisualTransition.GeneratedEasingFunction>
											<QuinticEase EasingMode="EaseOut"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="UnNavigated"/>
								<VisualState x:Name="Navigating">
									<Storyboard AutoReverse="False" BeginTime="00:00:00" RepeatBehavior="ForEver">
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="IndicatorBorder">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse01">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse12">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse11">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0.5"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse02">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse03">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse04">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse05">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse06">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse07">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse08">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse09">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse10">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0.25"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Navigated"/>
								<VisualState x:Name="NavigationFailed"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<VisualStateManager.CustomVisualStateManager>
							<ei:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<Grid>
							<ContentPresenter Cursor="{TemplateBinding Cursor}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
							<Border x:Name="IndicatorBorder" Background="#99000000" Visibility="Collapsed">
								<Canvas x:Name="spinner_1" HorizontalAlignment="Center" Height="24" Width="24">
									<Ellipse x:Name="ellipse01" Fill="White" Height="4" Opacity="0" Canvas.Top="10" Width="4"/>
									<Ellipse x:Name="ellipse02" Fill="White" Height="4" Canvas.Left="1.33975" Opacity="0" Canvas.Top="5" Width="4"/>
									<Ellipse x:Name="ellipse03" Fill="White" Height="4" Canvas.Left="5" Opacity="0" Canvas.Top="1.4" Width="4"/>
									<Ellipse x:Name="ellipse04" Fill="White" Height="4" Canvas.Left="10" Opacity="0" Canvas.Top="0" Width="4"/>
									<Ellipse x:Name="ellipse05" Fill="White" Height="4" Canvas.Left="15" Opacity="0" Canvas.Top="1.4" Width="4"/>
									<Ellipse x:Name="ellipse06" Fill="White" Height="4" Canvas.Left="18.6603" Opacity="0" Canvas.Top="5" Width="4"/>
									<Ellipse x:Name="ellipse07" Fill="White" Height="4" Canvas.Left="20" Opacity="0" Canvas.Top="10" Width="4"/>
									<Ellipse x:Name="ellipse08" Fill="White" Height="4" Canvas.Left="18.7" Opacity="0" Canvas.Top="15" Width="4"/>
									<Ellipse x:Name="ellipse09" Fill="White" Height="4" Canvas.Left="15" Opacity="0" Canvas.Top="18.66025" Width="4"/>
									<Ellipse x:Name="ellipse10" Fill="White" Height="4" Canvas.Left="10" Opacity="0" Canvas.Top="20" Width="4"/>
									<Ellipse x:Name="ellipse11" Fill="White" Height="4" Canvas.Left="5" Opacity="0" Canvas.Top="18.66025" Width="4"/>
									<Ellipse x:Name="ellipse12" Fill="White" Height="4" Canvas.Left="1.4" Opacity="0" Canvas.Top="15" Width="4"/>
								</Canvas>
							</Border>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="SidePanelNavigationContainerStyle" TargetType="n:NavigationContainer">
		<Setter Property="IsTabStop" Value="False"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderBrush" Value="Transparent"/>
		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		<Setter Property="VerticalContentAlignment" Value="Stretch"/>
		<Setter Property="Padding" Value="0,0,0,0"/>
		<Setter Property="BorderThickness" Value="0"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="n:NavigationContainer">
					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" OpacityMask="{TemplateBinding OpacityMask}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
						<VisualStateManager.CustomVisualStateManager>
							<ei:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="NavigationStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00" To="NavigationFailed"/>
									<VisualTransition From="NavigationFailed" GeneratedDuration="00:00:00"/>
									<VisualTransition From="Navigating" GeneratedDuration="0:0:0.5" To="Navigated">
										<ei:ExtendedVisualStateManager.TransitionEffect>
											<ee:SlideInTransitionEffect SlideDirection="RightToLeft"/>
										</ei:ExtendedVisualStateManager.TransitionEffect>
										<VisualTransition.GeneratedEasingFunction>
											<PowerEase EasingMode="EaseOut"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
									<VisualTransition GeneratedDuration="0:0:0.5" To="Navigating">
										<ei:ExtendedVisualStateManager.TransitionEffect>
											<ee:SlideInTransitionEffect/>
										</ei:ExtendedVisualStateManager.TransitionEffect>
										<VisualTransition.GeneratedEasingFunction>
											<PowerEase EasingMode="EaseIn"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="UnNavigated"/>
								<VisualState x:Name="Navigating">
									<Storyboard AutoReverse="False" BeginTime="00:00:00" RepeatBehavior="ForEver">
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="IndicatorBorder">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse01">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse12">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse11">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0.5"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse02">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse03">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse04">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse05">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse06">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse07">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse08">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse09">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.25"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse10">
											<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
											<EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="1"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.5"/>
											<EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0.25"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Navigated"/>
								<VisualState x:Name="NavigationFailed"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Grid>
							<ContentPresenter Cursor="{TemplateBinding Cursor}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
							<Border x:Name="IndicatorBorder" Background="#99000000" Visibility="Collapsed">
								<Canvas x:Name="spinner_1" HorizontalAlignment="Center" Height="24" Width="24">
									<Ellipse x:Name="ellipse01" Fill="White" Height="4" Opacity="0" Canvas.Top="10" Width="4"/>
									<Ellipse x:Name="ellipse02" Fill="White" Height="4" Canvas.Left="1.33975" Opacity="0" Canvas.Top="5" Width="4"/>
									<Ellipse x:Name="ellipse03" Fill="White" Height="4" Canvas.Left="5" Opacity="0" Canvas.Top="1.4" Width="4"/>
									<Ellipse x:Name="ellipse04" Fill="White" Height="4" Canvas.Left="10" Opacity="0" Canvas.Top="0" Width="4"/>
									<Ellipse x:Name="ellipse05" Fill="White" Height="4" Canvas.Left="15" Opacity="0" Canvas.Top="1.4" Width="4"/>
									<Ellipse x:Name="ellipse06" Fill="White" Height="4" Canvas.Left="18.6603" Opacity="0" Canvas.Top="5" Width="4"/>
									<Ellipse x:Name="ellipse07" Fill="White" Height="4" Canvas.Left="20" Opacity="0" Canvas.Top="10" Width="4"/>
									<Ellipse x:Name="ellipse08" Fill="White" Height="4" Canvas.Left="18.7" Opacity="0" Canvas.Top="15" Width="4"/>
									<Ellipse x:Name="ellipse09" Fill="White" Height="4" Canvas.Left="15" Opacity="0" Canvas.Top="18.66025" Width="4"/>
									<Ellipse x:Name="ellipse10" Fill="White" Height="4" Canvas.Left="10" Opacity="0" Canvas.Top="20" Width="4"/>
									<Ellipse x:Name="ellipse11" Fill="White" Height="4" Canvas.Left="5" Opacity="0" Canvas.Top="18.66025" Width="4"/>
									<Ellipse x:Name="ellipse12" Fill="White" Height="4" Canvas.Left="1.4" Opacity="0" Canvas.Top="15" Width="4"/>
								</Canvas>
							</Border>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<ControlTemplate x:Key="ValidationToolTipTemplate">
		<Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
			<Grid.RenderTransform>
				<TranslateTransform x:Name="xform" X="-25"/>
			</Grid.RenderTransform>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="OpenStates">
					<VisualStateGroup.Transitions>
						<VisualTransition GeneratedDuration="0"/>
						<VisualTransition GeneratedDuration="0:0:0.2" To="Open">
							<Storyboard>
								<DoubleAnimation Duration="0:0:0.2" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
									<DoubleAnimation.EasingFunction>
										<BackEase Amplitude=".3" EasingMode="EaseOut"/>
									</DoubleAnimation.EasingFunction>
								</DoubleAnimation>
								<DoubleAnimation Duration="0:0:0.2" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
							</Storyboard>
						</VisualTransition>
					</VisualStateGroup.Transitions>
					<VisualState x:Name="Closed">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Open">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="xform"/>
							<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Border Background="#052A2E31" CornerRadius="5" Margin="4,4,-4,-4"/>
			<Border Background="#152A2E31" CornerRadius="4" Margin="3,3,-3,-3"/>
			<Border Background="#252A2E31" CornerRadius="3" Margin="2,2,-2,-2"/>
			<Border Background="#352A2E31" CornerRadius="2" Margin="1,1,-1,-1"/>
			<Border Background="#FFDC000C" CornerRadius="2"/>
			<Border CornerRadius="2">
				<TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding (Validation.Errors)[0].ErrorContent}" UseLayoutRounding="false"/>
			</Border>
		</Grid>
	</ControlTemplate>

	<Style x:Key="SearchTextBoxStyle" TargetType="TextBox">
		<Setter Property="BorderThickness" Value="2"/>
		<Setter Property="Background" Value="#FFFFFFFF"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="2"/>
		<Setter Property="BorderBrush" Value="#FFD4D4D4" />
		<Setter Property="FontFamily" Value="Arial" />
		<Setter Property="FontSize" Value="16" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="TextBox">
					<Grid x:Name="RootElement">
						
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver"/>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="ReadOnly">
									<Storyboard>
										<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ReadOnlyVisualElement"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="ValidationStates">
								<VisualState x:Name="Valid"/>
								<VisualState x:Name="InvalidUnfocused"/>
								<VisualState x:Name="InvalidFocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>						
						<Grid>
							<Rectangle RadiusX="15" RadiusY="15" Stroke="{TemplateBinding BorderBrush}" Fill="{TemplateBinding Background}" />
							<Rectangle RadiusX="15" RadiusY="15" StrokeThickness="{TemplateBinding BorderThickness}" >
								<Rectangle.Stroke>
									<RadialGradientBrush RadiusY="0.921" RadiusX="0.991" Center="0.5,0.168" GradientOrigin="0.501,0.17">
										<GradientStop Color="#FF767676"/>
										<GradientStop Color="White" Offset="1"/>
									</RadialGradientBrush>
								</Rectangle.Stroke>
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FFEFEFEF"/>
										<GradientStop Color="White" Offset="0.297"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Rectangle x:Name="ReadOnlyVisualElement" RadiusX="15" RadiusY="15" Stroke="{TemplateBinding BorderBrush}" Fill="#5EC9C9C9" Opacity="0" />
							<ScrollViewer Margin="32,4,12,2" x:Name="ContentElement" BorderThickness="0" IsTabStop="False" 
								Padding="{TemplateBinding Padding}" VerticalAlignment="Center"/>
							<Path Data="M11,6 C11,8.7614241 8.7614241,11 6,11 C3.2385762,11 1,8.7614241 1,6 C1,3.2385762 3.2385762,1 6,1 C8.7614241,1 11,3.2385762 11,6 z M9.1339722,9.9879999 L13.508972,14.62" HorizontalAlignment="Left" Margin="10,0,0,0" Stretch="Fill" Stroke="#FF8D8C8C" StrokeThickness="2" UseLayoutRounding="False" Width="14.5" Height="15.5" VerticalAlignment="Center"/>
						</Grid>
						<Rectangle x:Name="DisabledVisualElement" Stroke="#A5F7F7F7" StrokeThickness="{TemplateBinding BorderThickness}" 
							Fill="#A5F7F7F7" IsHitTestVisible="False" Opacity="0" RadiusX="15" RadiusY="15" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

    <!-- MOVIE TITLE RELATED -->
    
    <DataTemplate x:Key="TitleItemTemplate">
        <Grid Width="170" Height="270" Background="Transparent" Cursor="Hand">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeftButtonUp">
                    <n:NavigateAction Url="Content/Netflix/Title/">
                        <n:DependencyParameter Key="MovieTitle" Value="{Binding}"/>
                    </n:NavigateAction>
                </i:EventTrigger>
            </i:Interaction.Triggers>
            <Border Width="160" Height="220" Margin="5" BorderThickness="1" BorderBrush="#FFE2E2E2" 
								VerticalAlignment="Top">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="White"/>
                        <GradientStop Color="#FEF9F9F9" Offset="1"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Image Source="{Binding BoxArt.LargeUrl}" Stretch="Fill"/>
            </Border>
            <TextBlock Margin="5,232,5,0" Text="{Binding Name}" VerticalAlignment="Top" FontSize="13.333" TextTrimming="WordEllipsis" TextAlignment="Center" FontFamily="Arial" FontWeight="Bold"/>
            <TextBlock Margin="5,250,5,0" VerticalAlignment="Top" FontSize="13.333" TextTrimming="WordEllipsis" TextAlignment="Center" FontFamily="Arial">
		    					<Run Text="{Binding ReleaseYear}"/><Run Text=" (Rating " /><Run Text="{Binding AverageRating}"/><Run Text="/5)" />
            </TextBlock>
        </Grid>
    </DataTemplate>

    <ItemsPanelTemplate x:Key="TitlesPanelTemplate">
        <local_Controls:WrapPanel Orientation="Horizontal" />
    </ItemsPanelTemplate>

	<!-- PERSON TEMPLATE (Text) -->
	
	<DataTemplate x:Key="PersonLinkTemplate">
		<TextBlock Text="{Binding Name}" Margin="0,0,0,4" Cursor="Hand" HorizontalAlignment="Left" >
			<i:Interaction.Triggers>
				<i:EventTrigger EventName="MouseLeftButtonUp">
					<n:NavigateAction Url="Content/Netflix/Person/" >
						<n:DependencyParameter Key="Person" Value="{Binding}"/>
					</n:NavigateAction>
				</i:EventTrigger>
			</i:Interaction.Triggers>
		</TextBlock>
	</DataTemplate>
	
	<DataTemplate x:Key="GenreItemTemplate">
		<Border BorderThickness="1" BorderBrush="{StaticResource ButtonBorderBrush}" Margin="5"
    		Background="{StaticResource ButtonBkgBrush}" CornerRadius="4" HorizontalAlignment="Right" 
			Cursor="Hand" Padding="5">
			<i:Interaction.Triggers>
				<i:EventTrigger EventName="MouseLeftButtonUp">							
					<n:NavigateAction HandlerName="ContentContainer" Url="Content/Netflix/Titles/" >
						<n:DependencyParameter Key="MovieTitles" Value="{Binding Titles}"/>
						<n:DependencyParameter Key="PageTitle" Value="{Binding Name, StringFormat=Genre: \{0\}}"/>
					</n:NavigateAction>
				</i:EventTrigger>
			</i:Interaction.Triggers>
			<TextBlock Text="{Binding Name}" Foreground="White" TextTrimming="None" FontSize="13" />
		</Border>
	</DataTemplate>

	<DataTemplate x:Key="LanguageItemTemplate">
		<Border BorderThickness="1" BorderBrush="{StaticResource ButtonBorderBrush}" Margin="5"
    		Background="{StaticResource ButtonBkgBrush}" CornerRadius="4" HorizontalAlignment="Right" 
			Cursor="Hand" Padding="5">
			<i:Interaction.Triggers>
				<i:EventTrigger EventName="MouseLeftButtonUp">							
					<n:NavigateAction HandlerName="ContentContainer" Url="Content/Netflix/Titles/" >
						<n:DependencyParameter Key="MovieTitles" Value="{Binding Titles}"/>
						<n:DependencyParameter Key="PageTitle" Value="{Binding Name, StringFormat=Language: \{0\}}"/>
					</n:NavigateAction>
				</i:EventTrigger>
			</i:Interaction.Triggers>
			<TextBlock Text="{Binding Name}" Foreground="White" TextTrimming="None" FontSize="13" />
		</Border>
	</DataTemplate>
	
	<!-- BUTTON TEMPLATES - NOT GOOD!! -->
	
	<Style x:Key="BackButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="{StaticResource ButtonBkgBrush}"/>
		<Setter Property="Foreground" Value="White"/>
		<Setter Property="Padding" Value="0"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="FontFamily" Value="Trebuchet MS" />
		<Setter Property="FontSize" Value="16" />
		<Setter Property="FontWeight" Value="Bold" />
		<Setter Property="BorderBrush" Value="{StaticResource ButtonBorderBrush}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid x:Name="RootLayout" Cursor="Hand">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver"/>
								<VisualState x:Name="Pressed"/>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0.8" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RootLayout" d:IsOptimized="True"/>
										<DoubleAnimation Duration="0" To="0.8" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="RootLayout">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<System:Boolean>False</System:Boolean>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" 
							Background="{TemplateBinding Background}" CornerRadius="4" 
							Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" HorizontalAlignment="Left">					
							<Grid Margin="0">
								<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" 
									Content="{TemplateBinding Content}" Margin="8,0,12,2" TextOptions.TextHintingMode="Animated"									
									HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}">									
									<ContentPresenter.Effect>
										<DropShadowEffect ShadowDepth="2" Direction="-247" BlurRadius="0" Color="#FF7E7E7E"/>
									</ContentPresenter.Effect>
								</ContentPresenter>
								<Path Fill="{StaticResource ButtonBkgBrush}" Stretch="Fill" Stroke="{StaticResource ButtonBorderBrush}"
									HorizontalAlignment="Left" Margin="-11.156,0,0,0" Width="13.375" UseLayoutRounding="False" 
									Data="M376.91461,37.226189 L389.91824,19.13336 L377.04596,4.4774022" Height="29.586" 
									VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
									<Path.RenderTransform>
										<CompositeTransform Rotation="0" SkewX="0" SkewY="0" ScaleX="-1" TranslateX="-1.3439998626708984"/>
									</Path.RenderTransform>
								</Path>
							</Grid>
						</Border>
						
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="BarButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="{StaticResource ButtonBkgBrush}"/>
		<Setter Property="Foreground" Value="White"/>
		<Setter Property="Padding" Value="8,5,8,6"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="FontFamily" Value="Trebuchet MS" />
		<Setter Property="FontSize" Value="16" />
		<Setter Property="FontWeight" Value="Bold" />
		<Setter Property="BorderBrush" Value="{StaticResource ButtonBorderBrush}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid x:Name="RootLayout" Cursor="Hand">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver"/>
								<VisualState x:Name="Pressed"/>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0.8" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RootLayout" d:IsOptimized="True"/>
										<DoubleAnimation Duration="0" To="0.8" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="RootLayout">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<System:Boolean>False</System:Boolean>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" 
							Background="{TemplateBinding Background}" CornerRadius="4" HorizontalAlignment="Left"
							Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">					
							<Grid Margin="0">
								<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" 
									Content="{TemplateBinding Content}" Margin="{TemplateBinding Padding}" 
									TextOptions.TextHintingMode="Animated"									
									HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}">									
									<ContentPresenter.Effect>
										<DropShadowEffect ShadowDepth="2" Direction="-247" BlurRadius="0" Color="#FF7E7E7E"/>
									</ContentPresenter.Effect>
								</ContentPresenter>
							</Grid>
						</Border>						
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>